<div class="td-patient-me-medical-record-birth-history-modify">
    <div class="btn">
        <el-button size="mini" @click.native="$router.push({name:'tdPatientMeMedicalBirthHistory'})">返回列表</el-button>
        <el-button size="mini" type="primary" @click.native="btnSubmit();">保存</el-button>
    </div>

    <mt-cell title="受孕/移植年月" is-link :value="params.PregnancyTime" @click.native="showPregnancyTime=true"></mt-cell>
    <mt-cell title="受孕方式">
        <div class="mint-radio-group">
            <el-radio-group size="mini" v-model="params.PregnancyWay" @change="getPregnancyWay">
                <el-radio-button label="0">自然受孕</el-radio-button>
                <el-radio-button label="1">人工授精</el-radio-button>
                <el-radio-button label="2">试管婴儿</el-radio-button>
            </el-radio-group>
        </div>
    </mt-cell>
    <mt-cell title="是否生育">
        <div class="mint-radio-group">
            <el-radio-group size="mini" v-model="params.IsChildbed">
                <el-radio-button label="0">足月产</el-radio-button>
                <el-radio-button label="1">早产</el-radio-button>
                <el-radio-button label="2">流产</el-radio-button>
            </el-radio-group>
        </div>
    </mt-cell>
    <!--足月产/早产-->
    <div class="delivery" v-if="params.IsChildbed!=='2'">
        <mt-cell title="孕周" :value="`${params.PregnancyWeek}周`" is-link @click.native="showPregnancyWeek=true"></mt-cell>
        <mt-cell title="顺/剖腹产">
            <div class="mint-radio-group">
                <el-radio-group size="mini" v-model="params.ChildbearingWay">
                    <el-radio-button label="0">顺产</el-radio-button>
                    <el-radio-button label="1">剖腹产</el-radio-button>
                    <el-radio-button label="2">顺产转剖腹产</el-radio-button>
                </el-radio-group>
            </div>
        </mt-cell>
    </div>
    <!--流产-->
    <div class="delivery-laparotomy" v-if="params.IsChildbed==='2'">
        <mt-cell title="胚胎" is-link :label="params.EmbryoStatus?params.EmbryoStatus:' '" :value="!params.EmbryoStatus?'请选择':' '" @click.native="changeEmbryoStatus"></mt-cell>
        <div class="list-radio-check-box" v-show="showEmbryoStatus">
            <mt-header>
                <mt-button slot="right" @click.native="showEmbryoStatus=false">关闭</mt-button>
            </mt-header>
            <td-check-radio :options="EmbryoStatusList" @changeEvent="getEmbryoStatus"></td-check-radio>
        </div>

        <mt-cell title="停止发育孕周" v-if="embryoStatusFlag('停止发育')" :value="`${params.StopDevelopment_Week}周`" @click.native="showStopDevelopment_Week=true" is-link></mt-cell>
        <mt-cell title="胎膜早破孕周" v-if="embryoStatusFlag('胎膜早破')" :value="`${params.PROM_Week}周`" @click.native="showPROM_Week=true" is-link></mt-cell>
        <mt-cell title="生长受限孕周" v-if="embryoStatusFlag('胎儿生长受限')" :value="`${params.FGR_Week}周`" @click.native="showFGR_Week=true" is-link></mt-cell>
        <mt-cell title="子痫前期孕周" v-if="embryoStatusFlag('子痫前期')" :value="`${params.Preeclampsia_Week}周`" @click.native="showPreeclampsia_Week=true" is-link></mt-cell>
        <mt-cell title="死胎孕周" v-if="embryoStatusFlag('死胎')" :value="`${params.DeadFetus_Week}周`" @click.native="showDeadFetus_Week=true" is-link></mt-cell>
        <mt-cell title="畸形儿孕周" v-if="embryoStatusFlag('畸形儿')" :value="`${params.OAF_Week}周`" @click.native="showOAF_Week=true" is-link></mt-cell>

        <mt-cell title="胚胎情况" is-link v-if="!showItem" :value="EmbryoDetailList.find(i=>i.value===params.EmbryoDetail).label" @click.native="showEmbryoDetail=true"></mt-cell>

        <mt-cell title="胎染" v-if="!showItem">
            <div class="mint-radio-group">
                <el-radio-group size="mini" v-model="params.EmbryoDye">
                    <el-radio-button label="0">无</el-radio-button>
                    <el-radio-button label="1">正常</el-radio-button>
                    <el-radio-button label="2">异常</el-radio-button>
                </el-radio-group>
            </div>
        </mt-cell>
        <mt-field label="异常情况" placeholder="请输入异常情况" v-if="params.EmbryoDye==='2' || showItem" v-model="params.Exception"></mt-field>

        <mt-cell title="保胎药" is-link v-if="params.KeepPregnantMedicine && !showItem" :label="params.KeepPregnantMedicine?params.KeepPregnantMedicine:' '" :value="!params.KeepPregnantMedicine?'请选择':' '" @click.native="showKeepPregnantMedicine=!showKeepPregnantMedicine"></mt-cell>
        <div class="list-radio-check-box" v-show="showKeepPregnantMedicine">
            <mt-header>
                <mt-button slot="right" @click.native="showKeepPregnantMedicine=false">关闭</mt-button>
            </mt-header>
            <td-check-radio :options="KeepPregnantMedicineList" @changeEvent="getKeepPregnantMedicine"></td-check-radio>
        </div>

        <mt-field label="其他用药" placeholder="请输入其他用药" v-if="!showItem" v-model="params.OtherMedicine"></mt-field>

        <mt-cell title="血肿" v-if="!showItem">
            <div class="mint-radio-group">
                <el-radio-group size="mini" v-model="isHematoncus">
                    <el-radio-button label="0">无</el-radio-button>
                    <el-radio-button label="1">有</el-radio-button>
                </el-radio-group>
            </div>
        </mt-cell>
        <mt-field label="血肿情况" placeholder="请输入血肿情况" v-if="isHematoncus==='1' || showItem" v-model="params.Hematoncus"></mt-field>

        <mt-cell title="病理" v-if="!showItem">
            <div class="mint-radio-group">
                <el-radio-group size="mini" v-model="isPathology">
                    <el-radio-button label="0">无</el-radio-button>
                    <el-radio-button label="1">有</el-radio-button>
                </el-radio-group>
            </div>
        </mt-cell>
        <mt-field label="病理情况" placeholder="请输入病理情况" v-if="isPathology==='1' || showItem" v-model="params.Pathology"></mt-field>

        <mt-cell title="结局" is-link :value="EmbryoEndingList.find(i=>i.value===params.EmbryoEnding).label" @click.native="showEmbryoEnding=true"></mt-cell>

        <mt-field label="医院" placeholder="请输入医院" v-model="params.Hospital"></mt-field>
    </div>

    <!--end-->

    <div class="btn">
        <el-button size="mini" @click.native="$router.push({name:'tdPatientMeMedicalBirthHistory'})">返回列表</el-button>
        <el-button size="mini" type="primary" @click.native="btnSubmit();">保存</el-button>
    </div>

    <!--受孕/移植年月-->
    <mt-popup v-model="showPregnancyTime" position="bottom" class="mint-popup-box">
        <mt-header title="受孕/移植年月">
            <mt-button slot="right" @click.native="showPregnancyTime=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <td-date-year-month @changeEvent="getPregnancyTime"></td-date-year-month>
        </div>
    </mt-popup>
    <!--孕周-->
    <mt-popup v-model="showPregnancyWeek" position="bottom" class="mint-popup-box">
        <mt-header title="孕周">
            <mt-button slot="right" @click.native="showPregnancyWeek=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="PregnancyWeekList" v-model="params.PregnancyWeek" @change="getPregnancyWeek"></mt-radio>
        </div>
    </mt-popup>
    <!--胚胎情况-->
    <mt-popup v-model="showEmbryoDetail" position="bottom" class="mint-popup-box">
        <mt-header title="胚胎情况">
            <mt-button slot="right" @click.native="showEmbryoDetail=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="EmbryoDetailList" v-model="params.EmbryoDetail" @change="getEmbryoDetail"></mt-radio>
        </div>
    </mt-popup>
    <!--结局-->
    <mt-popup v-model="showEmbryoEnding" position="bottom" class="mint-popup-box">
        <mt-header title="结局">
            <mt-button slot="right" @click.native="showEmbryoEnding=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="EmbryoEndingList" v-model="params.EmbryoEnding" @change="getEmbryoEnding"></mt-radio>
        </div>
    </mt-popup>

    <mt-popup v-model="showStopDevelopment_Week" position="bottom" class="mint-popup-box">
        <mt-header title="停止发育孕周">
            <mt-button slot="right" @click.native="showStopDevelopment_Week=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="StopDevelopment_WeekList" v-model="params.StopDevelopment_Week" @change="getStopDevelopment_WeekList"></mt-radio>
        </div>
    </mt-popup>
    <mt-popup v-model="showPROM_Week" position="bottom" class="mint-popup-box">
        <mt-header title="胎膜早破孕周">
            <mt-button slot="right" @click.native="showPROM_Week=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="PROM_WeekList" v-model="params.PROM_Week" @change="getPROM_Week"></mt-radio>
        </div>
    </mt-popup>
    <mt-popup v-model="showFGR_Week" position="bottom" class="mint-popup-box">
        <mt-header title="生长受限孕周">
            <mt-button slot="right" @click.native="showFGR_Week=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="FGR_WeekList" v-model="params.FGR_Week" @change="getFGR_Week"></mt-radio>
        </div>
    </mt-popup>
    <mt-popup v-model="showPreeclampsia_Week" position="bottom" class="mint-popup-box">
        <mt-header title="子痫前期孕周">
            <mt-button slot="right" @click.native="showPreeclampsia_Week=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="Preeclampsia_WeekList" v-model="params.Preeclampsia_Week" @change="getPreeclampsia_Week"></mt-radio>
        </div>
    </mt-popup>
    <mt-popup v-model="showDeadFetus_Week" position="bottom" class="mint-popup-box">
        <mt-header title="死胎孕周">
            <mt-button slot="right" @click.native="showDeadFetus_Week=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="DeadFetus_WeekList" v-model="params.DeadFetus_Week" @change="getDeadFetus_Week"></mt-radio>
        </div>
    </mt-popup>
    <mt-popup v-model="showOAF_Week" position="bottom" class="mint-popup-box">
        <mt-header title="畸形儿孕周">
            <mt-button slot="right" @click.native="showOAF_Week=false">关闭</mt-button>
        </mt-header>
        <div class="list-box">
            <mt-radio :options="OAF_WeekList" v-model="params.OAF_Week" @change="getOAF_Week"></mt-radio>
        </div>
    </mt-popup>

</div>